package compress;

import java.util.PriorityQueue;

public class MyTest {

    public static void main(String[] args) {

        PriorityQueue<Integer> queue = new PriorityQueue<>();
        queue.add(55);
        queue.add(33);
        queue.add(11);
        queue.add(22);
        queue.add(22);


        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
    }
}
